package com.aegis.gateway.constants;

/**
 * @Author renogo
 *
 * @Version 1.0
 * @Descritube
 */
public class RedisConstants {

    public static final String MODULE = "aegis:gateway";

    public static final String APP_INFO_LIST = MODULE + ":app_info_list";

    public static final String APP_INFO = MODULE + ":app_info";

    public static final String APP_PERMISSION = MODULE + ":app_permission";


    /**
     * 默认过期时间，单位秒
     */
    public static final long DEFAULT_CACHE_EXPIRE = 60L;

    public static String getAppPermissionKey(String appId) {
        return RedisConstants.APP_PERMISSION + ":" + appId;
    }


    public static String getAppInfoListKey() {
        return RedisConstants.APP_INFO_LIST;
    }
}
